<?php
    $this->load->view('wx/public/header.html', [
        'time' => time(),
        'css' => [
            'assets/wx/css/base.css'
        ]
    ]);
?>

<body class="base-detail" ng-controller="wx-base-index-controller">


<section class="aui-content">
    <div class="aui-card-list">
        <div class="aui-card-list-content" ng-click="showLive()">
            <div class="play" ng-if="isLive"></div>
            <img ng-src="{{ detail.thumb }}" />
        </div>
        <div class="aui-card-list-footer aui-padded-l-5 aui-padded-r-5" ng-bind="detail.baseName"></div>
    </div>
</section>

<section class="aui-grid aui-margin-b-15">
    <div class="aui-row">
        <div ng-repeat="(index, g) in goods" class="aui-col-xs-3 aui-padded-t-5 aui-padded-b-5">
            <div class="gu-base-goods-image">
                <img ng-src="{{ g.thumb }}" alt="">
            </div>
            <div class="aui-font-size-12 aui-ellipsis-2 aui-text-left" ng-bind="g.goodsName"></div>
        </div>
    </div>
</section>

<section class="aui-content">
    <div class="aui-card-list">
        <div class="aui-card-list-header">
            基地详情
        </div>
        <div class="aui-card-list-content" ng-bind-html="trustHtml"></div>
    </div>
</section>

<section class="aui-grid aui-margin-b-0">
    <h3 class="aui-text-center aui-margin-t-10">相关产品</h3>
    <div class="aui-row">
        <div class="aui-col-xs-6" ng-repeat="(index, r) in related">
            <div class="gu-base-related-thumb">
                <img ng-src="{{ r.thumb }}" alt="">
            </div>
            <div class="aui-font-size-12 aui-ellipsis-2" ng-bind="r.goodsName"></div>
        </div>
    </div>
</section>

<?php
    $this->load->view('wx/public/footer.html', [
        'time' => time(),
        'js' => [
            'assets/wx/js/base/index.js'
        ]
    ]);
?>
